package com.golf.comms.client;

import org.jboss.remoting.Client;
import org.jboss.remoting.InvokerLocator;

import com.golf.comms.server.LobbyInvocationCommand;

public class MClient 
{

	
	/**
	 * 
	 * @param args The supplied arguments from the command line.
	 * @throws Throwable 
	 */
	public static final void main(final String[] args) throws Throwable
	{
		
		
		InvokerLocator myLocator = new InvokerLocator("socket://localhost:8084");
		
		Client client = new Client(myLocator, "LOBBY");
		client.connect();
		

		System.out.println( client.invoke(LobbyInvocationCommand.ADD_ROOM));
		System.out.println( client.invoke(LobbyInvocationCommand.ADD_ROOM));

		System.out.println( client.invoke(LobbyInvocationCommand.LIST_ROOMS));


	}
	
	
}
